<?php
require_once "functions.php";

	$owner = showOwner();
	//echo var_dump($owner);
	$headline="<h3>Owner</h3>";
//	$count = numRows($owner);
//	$type_of_list="Owner";
//	$width="75%";
//	@require('browser.php');
		
	echo "
	<table class=\"dbList\" width='$width'>";

	$index=1;
	while ($data = mysql_fetch_array($owner)) 
	{
		$sql = "SELECT * FROM friends WHERE id = '".$data['owner']."'";
		$ownerIno = mysql_fetch_array(dbquery($sql));
		//echo var_dump($sql);	
//		if ($index>=$displayFrom && $index<=$displayTo)
//		{
			echo "
			<tr>
                <td align=\"center\">".$data['owner']."</td>
                <td align=\"center\"><img src=\"".$ownerIno["pic"]."\"></td>
			</tr>\n";
//		}
		$index++;
	}

	echo "
	</table><br><br><br>";
	
	
?>